package matlap.client.services.teacher;

import java.util.List;

import matlap.shared.Teacher;

import com.google.gwt.user.client.rpc.AsyncCallback;

public interface TeacherServiceAsync {

	void getTeachers(AsyncCallback<List<Teacher>> callback);

	void getTeachersNumber(AsyncCallback<Integer> callback);

	void selectTeachersName(AsyncCallback<List<Teacher>> callback);

	void getTeachersByName(String name, AsyncCallback<List<Teacher>> callback);

	void getUserNames(AsyncCallback<List<String>> callback);

	void deleteTeacher(String username, AsyncCallback<Void> callback);

	void getTeacherByUserName(String username, AsyncCallback<Teacher> callback);

	void updateTeacher(String userName, String firstName, String lastName,
			String address, int accept, AsyncCallback<Void> callback);

}
